package com.ling.rocketmq.util;

public class NameSrvAddrUtil {
    public static String nameSrvAddrBuild(String[] nameSrvAddr) {
        StringBuilder sb = new StringBuilder();
        for (String s : nameSrvAddr) {
            sb.append(s).append(";");
        }
        return sb.length() > 0 ? sb.substring(0, sb.length() - 1) : sb.toString();
    }
}
